var str='';
<#list list as doc>
<#if doc_index gt 6><#break/></#if>
str+='<tr>';
str+='  <td><img src="images/jdnews.gif" alt=""  /></td>';
str+='  <td><a href="http://news.17dian.com/${doc.category.name}/${doc.did}.html" target="_blank" class="a35" <#if doc_index==0>style="color:red"</#if>><#if doc.temp_title.length() gt 19>${doc.temp_title[0..18]}..<#else>${doc.temp_title}</#if></a><#if doc.type?exists && doc.type=="hot"><img src="http://news.17dian.com/images/hot.gif"/></#if></td>';
str+='  <td align="right">${doc.posttime?string("MM-dd")}</td>';
str+='</tr>';
</#list>
document.write(str);